<?php

namespace IMT\EventBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class EventAlertType extends AbstractType
{
   

	public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('type', 'choice', array(
                'label'        => 'Type de rappel',
                'choices'      => array('mail' => 'Alerte Mail', 'notif' => 'Notification' , 'popup' => 'Popup'),
            ))
            
            ->add('date', 'datetime', array(
                'label'        => 'Date  ',
            ))
            
         
           ->add('description', 'textarea', array(
                'attr'  => array(
                    'class' => 'input-xlarge',
                    'rows'  => 3
                    )
               ))
            
        ;
    }

    public function getName()
    {
        return 'Ajout_rappel';
    }
	
}
